<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

</head>
<body>
<div id="app">
    {{name}}
</div>
<script src="../../../plugins/layui/layui.js" charset="utf-8"></script>
<script src="../../../plugins/jquery/jquery.min.js"></script>
<script src="../../../plugins/vue/vue.min.js"></script>
<script src="../../../plugins/vue/vue-router.js"></script>
<script src="../../../plugins/vue/mockjs/dist/mock-min.js"></script>

<script>
    new Vue({
        el: '#app',
        data: {
            name:""
        },
        methods: {
            init(){
                this.$http.get("/mvc01/cat/ajax.action").then(function(result){
                    console.log(result);
                    this.name = result.name;
                })
            },
        },
        created() {
            this.init()
        },
    })
</script>
</body>
</html>